cmake_minimum_required(VERSION 3.0)

project(SOLIDERFIRE)

set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall")

set(CMAKE_BUILD_TYPE Debug)

set(EXECUTABLE_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/install) #PROJECT_SOURCE_DIR:当前工程目录下，如果没有install则创建。

include_directories(${CMAKE_SOURCE_DIR}/include) # CMAKE_SOURCE_DIR: CMakeLists.txt 所在文件夹的绝对路径

add_executable(my_cmake_exe main.cpp src/Gun.cpp src/Solider.cpp)